package com.ruoyi.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.system.domain.ProCreateBuilding;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 工程合同及补充协议对象 pro_con_sup_agr
 *
 * @author ruoyi
 * @date 2020-06-18
 */
public class ProConSupAgr extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @Excels({
            @Excel(name = "项目名称", targetAttr = "pName", type = Excel.Type.EXPORT),
            @Excel(name ="创建时间", targetAttr = "pTime",type = Excel.Type.EXPORT)
    })
    private ProCreateBuilding proCreateBuilding;

    public ProCreateBuilding getProCreateBuilding() {
        return proCreateBuilding;
    }

    public void setProCreateBuilding(ProCreateBuilding proCreateBuilding) {
        this.proCreateBuilding = proCreateBuilding;
    }
    /** ID */
    private Long pId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String pFileName;

    /** 上传文件 */
    @Excel(name = "上传文件")
    private String pUploading;

    /** 备注 */
    @Excel(name = "备注")
    private String pRemark;

    /** 上传人 */
    @Excel(name = "上传人")
    private String pTheHeir;

    /** 上传时间 */
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pTime;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal pMoney;

    /** 合同方 */
    @Excel(name = "合同方")
    private String pContractParty;

    public int getpPro() {
        return pPro;
    }

    public void setpPro(int pPro) {
        this.pPro = pPro;
    }

    /**  外键id*/
//    @Excel(name = "项目信息")
    private int pPro;

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

//    @Excel(name = "外键id")
    private int parentId;



    public void setpId(Long pId)
    {
        this.pId = pId;
    }

    public Long getpId()
    {
        return pId;
    }
    public void setpFileName(String pFileName)
    {
        this.pFileName = pFileName;
    }

    public String getpFileName()
    {
        return pFileName;
    }
    public void setpUploading(String pUploading)
    {
        this.pUploading = pUploading;
    }

    public String getpUploading()
    {
        return pUploading;
    }
    public void setpRemark(String pRemark)
    {
        this.pRemark = pRemark;
    }

    public String getpRemark()
    {
        return pRemark;
    }
    public void setpTheHeir(String pTheHeir)
    {
        this.pTheHeir = pTheHeir;
    }

    public String getpTheHeir()
    {
        return pTheHeir;
    }
    public void setpTime(Date pTime)
    {
        this.pTime = pTime;
    }

    public Date getpTime()
    {
        return pTime;
    }
    public void setpMoney(BigDecimal pMoney)
    {
        this.pMoney = pMoney;
    }

    public BigDecimal getpMoney()
    {
        return pMoney;
    }
    public void setpContractParty(String pContractParty)
    {
        this.pContractParty = pContractParty;
    }

    public String getpContractParty()
    {
        return pContractParty;
    }
    //以下是为了导出
    public String getPContractParty()
    {
        return pContractParty;
    }
    public String getPFileName()
    {
        return pFileName;
    }
    public BigDecimal getPMoney()
    {
        return pMoney;
    }
    public String getPRemark()
    {
        return pRemark;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("pId", getpId())
                .append("pFileName", getpFileName())
                .append("pUploading", getpUploading())
                .append("pRemark", getpRemark())
                .append("pTheHeir", getpTheHeir())
                .append("pTime", getpTime())
                .append("pMoney", getpMoney())
                .append("pContractParty", getpContractParty())
                .append("proCreateBuilding",getProCreateBuilding())
                .toString();
    }
}
